package com.jyb.qiyefuwu.api.service;


import android.text.TextUtils;

import com.swgk.core.BuildConfig;
import com.swgk.core.util.MLog;

public class UrlConfig {
    //服务器地址
    public static String BASE_URL = BuildConfig.BASE_URL;
    //企业服务
    public static String SERVICE_URL = BuildConfig.BASE_URL_HY;

    public static void initUrlConfig(String type) {
        if (TextUtils.isEmpty(type)) return;
        if (type.contains("release")) {
            BASE_URL = "http://gateway.shigongbang.com/sgb-app-android/";
            //sgb-app
            SERVICE_URL = "http://gateway.shigongbang.com/zjkj-app/";
        } else if (type.contains("pre")) {
            BASE_URL = "http://gateway.shigongbang.com/sgb-app-pre/";
            SERVICE_URL = "http://api.jingyingbang.net/zjkj-app/";
        } else {
            BASE_URL = "http://api.sgbwl.com/sgb-app/";
            SERVICE_URL = "http://api.sgbwl.com/zjkj-app/";
        }
        MLog.d("接口", "BASE_URL==" + BASE_URL + "\t" + SERVICE_URL);
    }
}